package com.homework8_1;

public class Rabbit extends Animal  {
    public Rabbit(String name, String color, String kind) {
        super(name, color, kind);
    }

    public Rabbit() {
    }
    public void eat(){
        System.out.println("兔子是"+getKind()+"爱吃胡萝卜");
    }
    public void shout(){
        System.out.println("那只"+getColor()+"色，名叫"+getName()+"的兔子"+"在叽叽叫");
    }

}
